import { createStore, combineReducers, applyMiddleware } from 'redux'
import userReducer from './user/index'

import thunk from 'redux-thunk'
import logger from 'redux-logger'

const reducer = combineReducers({
  user: userReducer
})

export type RootState = ReturnType<typeof store.getState>

const store = createStore(reducer, applyMiddleware(thunk, logger));

export default store;